package com.jxd.ordering.model;

/**
 * @ClassName Page
 * @Description TODO
 * @Author Ankailong
 * @Date 2022/9/28
 * @Version 1.0
 */
public class Page extends Entity {
    private Integer id;//id
    private Integer pid;//pid
    private String path;//路径
    private String title;//标题
    private String cpn;//组件
    private String icon;//图标
    private Integer pmenu;//上级菜单

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCpn() {
        return cpn;
    }

    public void setCpn(String cpn) {
        this.cpn = cpn;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getPmenu() {
        return pmenu;
    }

    public void setPmenu(Integer pmenu) {
        this.pmenu = pmenu;
    }

    @Override
    public String toString() {
        return "Page{" +
                "id=" + id +
                ", pid=" + pid +
                ", path='" + path + '\'' +
                ", title='" + title + '\'' +
                ", cpn='" + cpn + '\'' +
                ", icon='" + icon + '\'' +
                ", pmenu=" + pmenu +
                '}';
    }

    public Page() {
    }

    public Page(Integer id, Integer pid, String path, String title, String cpn, String icon, Integer pmenu) {
        this.id = id;
        this.pid = pid;
        this.path = path;
        this.title = title;
        this.cpn = cpn;
        this.icon = icon;
        this.pmenu = pmenu;
    }
}
